/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.spring66.training.service.impl;

import com.spring66.training.service.Clinic;
import com.spring66.training.dao.PetTypeDao;
import com.spring66.training.entity.Owner;
import com.spring66.training.entity.Pet;
import com.spring66.training.entity.PetType;
import com.spring66.training.entity.Vet;
import com.spring66.training.entity.Visit;
import java.util.Collection;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author TwinP
 */
@Repository
@Transactional
public class ClinicImpl implements Clinic {
    private PetTypeDao pettypeDao;
    @Override
    public Collection<Vet> getVets() throws DataAccessException {
        return null;
    }

    @Override
    public Collection<PetType> getPetTypes() throws DataAccessException {
        return pettypeDao.readAll();
    }

    @Override
    public Collection<Owner> findOwners(String lastName) throws DataAccessException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Owner loadOwner(int id) throws DataAccessException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Pet loadPet(int id) throws DataAccessException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void storeOwner(Owner owner) throws DataAccessException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void storePet(Pet pet) throws DataAccessException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void storeVisit(Visit visit) throws DataAccessException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    /**
     * @return the pettypeDao
     */
    public PetTypeDao getPettypeDao() {
        return pettypeDao;
    }

    /**
     * @param pettypeDao the pettypeDao to set
     */
    public void setPettypeDao(PetTypeDao pettypeDao) {
        this.pettypeDao = pettypeDao;
    }


}

